/**
 * 							RTC Common Defination
 * @brief	RTC Common Definaton
 * @author	chy.
 * @note
 * @comment	this file defines macros and functions used by kernel, we'd batter make it has less thing with platform!
 */

#ifndef	_K_DRIV_RTC_C_
#define	_K_DRIV_RTC_C_

#include "k_rtc_common.h"
#include "k_rtc_s3c2440.h"

/**
 * @BRIEF	:	Initialize RTC
 * @PARAM	:	void
 * @RETURN	:	void
 * @NOTE	:	The hard rtc is different in different platform.
 */
void k_driv_rtc_init(void)
{
	k_driv_s3c2440_rtc_init();
}


/**
 * @BRIEF	:	Set RTC Value
 * @PARAM	:	time time value
 * @RETURN	:	0 failed, other success
 * @NOTE	:	this function will igore week field in K_Time structure
 */
unsigned int k_driv_rtc_set(K_Time *time)
{
	return k_driv_s3c2440_rtc_set(time);
}

#endif /* _K_DRIV_RTC_C_ */